#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QVariant>
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    setModualName("mainwindow");
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_pushButton_clicked()
{
    GitlEvent e(this,"model","test_event", NON_BLOCKING);
    dispatchEvt(&e);
}
bool MainWindow::detonate( GitlEvent* pcEvt )
{
    QVariant rvValue;
    pcEvt->getEvtData().getParameter("test_respond",rvValue);
    ui->pushButton->setText(rvValue.toString());
    ui->pushButton->setText(rvValue.toString()); return 0;
}
